import Layout from '@/layout'

const couponRouter = {
  path: '/coupon',
  component: Layout,
  redirect: '/coupon',
  name: 'coupon',
  children: [
    // 优惠券管理
    {
      path: 'list',
      component: () => import('@/views/coupon/couponList'),
      name: 'couponManage',
      meta: {title: '优惠券管理',activeMenu: '/coupon/list'},
      hidden: true
    },
    {
      path: 'detail/:id(\\d+)',
      component: () => import('@/views/coupon/couponDetail/couponInfo'),
      name: 'couponInfo',
      meta: { noCache: true, title: '优惠券详情',activeMenu: '/coupon/list'},
      hidden: true
    },
    
  ]
}
export default couponRouter;
